package com.bluedot.www.core.pojo.DTO;

import com.bluedot.www.core.pojo.DO.Role;
import com.bluedot.www.core.pojo.DO.User;

import java.io.Serializable;
import java.util.List;

/**
 * @author ZhouXuan
 * @version 1.0
 * @date 2021/9/2 10:33
 */
public class UserDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户
     */
    private User user;

    /**
     * 已有角色列表
     */
    private List<Role> existRoles;

    /**
     * 未有角色列表
     */
    private List<Role> notExistRoles;


    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public List<Role> getExistRoles() {
        return existRoles;
    }

    public void setExistRoles(List<Role> existRoles) {
        this.existRoles = existRoles;
    }

    public List<Role> getNotExistRoles() {
        return notExistRoles;
    }

    public void setNotExistRoles(List<Role> notExistRoles) {
        this.notExistRoles = notExistRoles;
    }

    @Override
    public String toString() {
        return "UserDTO{" +
                "user=" + user +
                ", existRoles=" + existRoles +
                ", notExistRoles=" + notExistRoles +
                '}';
    }
}
